package com.dbs.donatebooksystem.Service.impl;

import com.dbs.donatebooksystem.Service.AdminService;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    // 硬编码的认证信息
    private static final String ADMIN_USERNAME = "admin";
    private static final String ADMIN_PASSWORD = "gzhs";
    @Override
    public boolean validateAdmin(String username, String password) {
        return ADMIN_USERNAME.equals(username) && ADMIN_PASSWORD.equals(password);
    }
}
